var sh=null;
var abc;
var one=false;
var loadTime;
var valueOne;
var valueTwo;
//自适应
adaptPage();
$(window).resize(function() {
	adaptPage();
});
$(function(){
	var preload = [];
	var imgNum = 0;
	$("img").each(function() {
		preload.push($(this).attr("src"));
	});
	$.imgpreload(preload, {
		each: function() {
			var status = $(this).data('loaded') ? 'success' : 'error';
			if (status == "success") {
				var v = (parseFloat(++imgNum) / preload.length).toFixed(2);
				var g = v * 100;
				v = v * 100 - 10;
				//console.log(parseFloat(++imgNum) / preload.length);
				$('.went').animate({
					width: g + "%"
				}, 50);
			}
		},

		all: function() {
			$('.loading').fadeOut();
			loadEnd();
		}
	})

})
function loadEnd(){
	
}
//==============================
$(function(){
	var swiper=new Swiper('.swiper-container',{
		effect:'coverflow',
		slidesPerView:2,
		centeredSlides:true,
		coverflow:{
			rotate:30,
			stretch:0,
			depth:0,
			modifier:1,
			slideShadows:true
		}
	})
//=====================================
$('input[type="text"]').focus(function(){
$(this).css({'outline':'none'});
})
$('input[type="password"]').focus(function(){
$(this).css({'outline':'none'});
})
//==============
$('.editor-nav,.ad-nav,.ad-nav1').tap(function(){
	$(this).addClass('selected');
	$(this).siblings().removeClass('selected');
})
$('.editor-nav0').tap(function(){
	$(this).addClass('selected0');
	$(this).siblings().removeClass('selected0');
})
$('.gtitle,.gcontent').focus(function(){
	$(this).css({'outline':'none'});
})
$('.rd1 li:eq(1)').tap(function(){
    $('.blue-blank').animate({'margin-left':'50%'},'slow');
})
$('.rd1 li:eq(0)').tap(function(){
    $('.blue-blank').animate({'margin-left':'0%'},'slow');
})
})//结束
$(function(){
var $player=$('#player');
var player=$player[0];
$('.play1-m').tap(function(){
     if(player.paused){
     	player.play();
     	$(this).removeClass('play3').addClass('pause3');
     } else{
     	player.pause();
     	$(this).removeClass('pause3').addClass('play3');
     }
})
})//结束

